##############################################################
## Mod Title: Site Statistics Block
## Mod Version: 1.0.0
## Author : GZP <gzp@gzp-inc.com> 
##	    http://gzp-inc.com
## Description: - This seperates the statistics and online list
## in the "who is online" block on the index.
##
## Installation Level:  Easy
## Installation Time:   1 Minutes
## Files To Edit:       portal_body.tpl
## Demo: http://gzp-inc.com
##############################################################
## History:
## 6/10/05 - 1.0 Release for phpBB 2.0.15
############################################################## 
## Author Notes: This has only been tested with the subSilver
## and smartDark templates. If you know enough you can modify
## it to work with your template. If you want to know what it
## looks like, visit my site @ http://gzp-inc.com
##
##############################################################
## Before Adding This MOD To Your Forum, 
## You Should Back Up All Files Related To This MOD
##############################################################
#

#
#-----[ OPEN ]------------------------------------------
#

index.php

#
#-----[ FIND ]----------------------------------------
#

$total_users = get_db_stat('usercount');

#
#-----[ AFTER ADD ]-----------------------------------
#

$total_topics = get_db_stat('topiccount');

#
#-----[ FIND ]----------------------------------------
#

		'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),

#
#-----[ AFTER ADD ]-----------------------------------
#

	       'TOTAL_TOPICS' => sprintf($lang['total_topics'], $total_topics),

#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]----------------------------------------
#

$lang['Total_posts'] = 'Total posts';

#
#-----[ AFTER ADD ]-----------------------------------
#

$lang['total_topics'] = " within <b>%s</b> topics";

#
#-----[ OPEN ]------------------------------------------------
#

templates/subSilver/index_body.tpl

#
#-----[ FIND ]-----------------------------------------
#

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr> 
	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
	</td>
  </tr>
  <tr> 
	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
	<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>

#
#-----[ REPLACE WITH ]----------------------------------------
#

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr> 
	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
	<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
	  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
	   <tr>
		<td class="catHead" height="25"><span class="genmed"><b><center>Site Statistics</center></b></span></td>
	   </tr>
	   <tr>
		<td class="row1" align="center"><span class="genmed" style="line-height: 100%">
{TOTAL_POSTS} {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER} | {RECORD_USERS}
		</td>
	   </tr>
	  </table>

#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#